<?php include './rule/rl_video.php';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel='stylesheet' id='main-css'  href='<?php echo $aik_domain;?>template/<?php echo $template;?>/css/style.css' type='text/css' media='all' />
<link rel='stylesheet' id='main-css'  href='<?php echo $aik_domain;?>template/<?php echo $template;?>/css/play.css' type='text/css' media='all' />
<script type='text/javascript' src='http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js?ver=0.5'></script>
<script type="text/javascript " src="<?php echo $aik_domain;?>template/<?php echo $template;?>/js/history.js "></script>	
<title>正在播放-<?php echo $timu; ?>-<?php echo $aik_title;?></title>
<meta name="keywords" content="<?php echo $timu; ?>-播放页-<?php echo $aik_keywords;?>">
<meta name="description" content="<?php echo $aik_desc;?>">
<script type="text/javascript">
$(function(){
		
			var $li = $('#mytab li');
			var $ul = $('#mycontent ul');
						
			$li.click(function(){
				var $this = $(this);
				var $t = $this.index();
				$li.removeClass();
				$this.addClass('current');
				$ul.css('display','none');
				$ul.eq($t).css('display','block');
			})
		
});

</script>
</head>
<body>
<?php  include 'aik_head.php';?>
<div class="single-post">
<section class="container">
    <div class="content-wrap">
    	<div class="content"><!--删掉可全屏-->
<div class="asst asst-post_header"><?php echo aik_gg(1);?></div>
<div class="sptitle"><h1><?php echo $timu; ?></h1></div>
<div id="bof">
</div>
<div class="am-cf"></div>
<div class="am-panel am-panel-default">
<div class="am-panel-bd">
<div class="info embed-responsive">
<div id="shiping_box"></div>
<?php 
echo '<iframe id="video" src="'.$aik_jiexi1.$mvsrc[0].'" style="width:100%;border:none"></iframe>';
?>
</div>

<div class="footer clearfix" id="xlus" >
<a onclick="xldata(this)" data-jk="<?php echo $aik_jiexi1;?>" class="btn-default">线路一</a>  
<a onclick="xldata(this)" data-jk="<?php echo $aik_jiexi2;?>" class="btn-default">线路二</a>  
<a onclick="xldata(this)" data-jk="<?php echo $aik_jiexi3;?>" class="btn-default">线路三</a>  
<a onclick="xldata(this)" data-jk="<?php echo $aik_jiexi4;?>" class="btn-default">线路四</a>  
<a onclick="xldata(this)" data-jk="<?php echo $aik_jiexi5;?>" class="btn-default">线路五</a>  
<a onclick="xldata(this)" data-jk="<?php echo $aik_jiexi6;?>" class="btn-default">线路六</a>
<form method="post"><button class="btn-default jkbtn" style='float:right' name="save" >加入收藏</button></form>
<?php if($url_array[1] <> 'm'){?>		
<a id="btn-next1" class="btn-default jkbtn" style='float:right'>下一集</a><a id="btn-pre1" class="btn-default jkbtn" style='float:right'>上一集</a>
<?php }?>
</div>
<div style="clear: both;"></div> 
<div id="xuji"></div>
<?php echo aik_gg(2);?>
 
<div class="video-list view-font">
<div class="dianshijua" id="dianshijuid">
<h3 class="single-strong">无需安装任何插件</h3> 
<div class="top-list-ji">
<div class="num-tab js-tabs">
<div class="num-tab-main g-clear js-tab"  id="no_content"><?php 
if($url_array[1] == 'm'){
foreach ($bflu as $key0=>$xianlu){
	$bfyuan[$key0] = str_replace("(付费)","",$bfyuan[$key0]);
	echo "<a href='$mvsrc[$key0]'>";echo "$bfyuan[$key0]</a>";
}}
else if($url_array[1] == 'tv')
	{
    echo '<div id="myouter"><ul id="mytab">';
$pindao = $html;

if ($x=strpos($pindao,'playsite:[')) $pindao=substr($pindao,$x);
if ($x=strpos($pindao,'}]')) $pindao=substr($pindao,0,$x);
$pattern = '#"ensite":"(.*?)"#'; 
preg_match_all($pattern, $pindao, $matches);
$changdu = count($matches[1]);

$htmlid = $dsjid;;
$htmlid = str_replace(".html","",$htmlid);

$bfqq =  file_get_contents('http://www.360kan.com/cover/switchsite?site='.$matches[1][0].'&id='.$htmlid.'&category=2', false);
$bfqq = json_decode($bfqq,true);
$bfqq = str_replace('<a target="_self" class="all js-show-init" href="#" title="收起">收起</a>',"",$bfqq);
$bfqq = str_replace("opacity:0","opacity:1",$bfqq);
$bfqq = str_replace("全部剧集","",$bfqq);
$bfqq = str_replace("data-daochu","class='btn-play-source' data-daochu",$bfqq);

echo '<li class="current">'.$matches[1][0].'</li>';
for($xh =1;$xh<$changdu;$xh++){
$bfqq =  file_get_contents('http://www.360kan.com/cover/switchsite?site='.$matches[1][$xh].'&id='.$htmlid.'&category=2', false);
$bfqq = json_decode($bfqq,true);
$bfqq = str_replace('<a target="_self" class="all js-show-init" href="#" title="收起">收起</a>',"",$bfqq);
$bfqq = str_replace("opacity:0","opacity:1",$bfqq);
$bfqq = str_replace("全部剧集","",$bfqq);
$bfqq = str_replace("data-daochu","class='btn-play-source' data-daochu",$bfqq);

echo '<li>'.$matches[1][$xh].'</li>';}
echo '</ul><div id="mycontent">';
$bfqq =  file_get_contents('http://www.360kan.com/cover/switchsite?site='.$matches[1][0].'&id='.$htmlid.'&category=2', false);
$bfqq = json_decode($bfqq,true);
$bfqq = str_replace('<a target="_self" class="all js-show-init" href="#" title="收起">收起</a>',"",$bfqq);
$bfqq = str_replace("opacity:0","opacity:1",$bfqq);
$bfqq = str_replace("全部剧集","",$bfqq);	
$bfqq = str_replace("data-daochu","class='btn-play-source' data-daochu",$bfqq);			
echo '<ul style="display:block;">'.$bfqq['data'].'</ul>';
for($xh =1;$xh<$changdu;$xh++){$bfqq =  file_get_contents('http://www.360kan.com/cover/switchsite?site='.$matches[1][$xh].'&id='.$htmlid.'&category=2', false);
$bfqq = json_decode($bfqq,true);
$bfqq = str_replace('<a target="_self" class="all js-show-init" href="#" title="收起">收起</a>',"",$bfqq);
$bfqq = str_replace("opacity:0","opacity:1",$bfqq);
$bfqq = str_replace("全部剧集","",$bfqq);
$bfqq = str_replace("data-daochu","class='btn-play-source' data-daochu",$bfqq);
echo '<ul >'.$bfqq['data'].'</ul>';
}
echo '</div></div>';
}else if($url_array[1] == 'va')
{
foreach ($zylink as $key=>$value){	
    //echo $much++;
    //echo $video.'<br/>';
    //echo $key.'<br/>';
echo '<a class="btn-play-source" href="'.$value.'" style="text-align:left;">['.$zytime[$key].']'.$zybiaoti[$key].'</a>';}
}
else if($url_array[1] == 'ct'){
	foreach ($dmid as $key=>$dmjishu){
   
	$kanji="第'+jiid+'集";
    //echo $much++;
    //echo $video.'<br/>';
    //echo $key.'<br/>';
echo '<a  class="btn-play-source" href='.$dmlink[$key].'>'.$dmjishu.'</a>';
}}
?></div>
</div></div>
<div style="clear: both;"></div>
<h3 class="single-strong">简介</h3><p class="item-desc js-close-wrap" ><?php echo $jian;?></p>
<div style="clear: both;"></div>
<?php echo $aik_changyan;?>
<div style="clear: both;"></div>
<script>
                $(function () {
                    $.each($('.num-tab.js-tabs'),function () {
                        if($(this).children('.num-tab-main').length>1){
                            $(this).children('.num-tab-main:eq(0)').remove();
                        }
                        $(this).children('.num-tab-main:eq(0)').children('a').addClass('am-btn am-btn-default lipbtn');

                    });
                    $('.ji-tab-content.js-tab-content').css('opacity',1)
                    $.each($('.lipbtn'),function () {
                        var url = $(this).attr('href');
                        $(this).attr('data-href',url);
                        $(this).attr('href','javascript:;');
                        $(this).attr('onclick','bofang(this)');
                    });
                    $('#xlus').children('a:eq(0)').addClass('jkbtn');
                    var autourl = $('.lipbtn:eq(0)').attr('data-href');
                    $('.lipbtn:eq(0)').attr('id','on');
                  //  var text = $('.lipbtn:eq(0)').text();
                   // $('.js').text('-'+text+'');
                    var jiekou = $('#xlus').children('a:eq(0)').attr('data-jk');
                    if(autourl!=''||autourl!=null){
                        setTimeout(function () {
                            $('#video').attr('src', jiekou + autourl);
                        },0)
                    }
					    // 上一集
    $("#btn-pre").click(function() {
        $("#on.btn-play-source").prev().click();
    });
    
    // 下一集
    $("#btn-next").click(function() {
        $("#on.btn-play-source").next().click();
    });
					    // 上一集
    $("#btn-pre1").click(function() {
        $("#on.btn-play-source").prev().click();
    });
    
    // 下一集
    $("#btn-next1").click(function() {
        $("#on.btn-play-source").next().click();
    });
                })
            </script>
            <script>
                function bofang(obj) {
                    var href = $(obj).attr('data-href');
                    //var text = $(obj).text();
                   // $('.js').text('-' + text+'');
                    $.each($('.lipbtn'), function () {
                        $(this).attr('id','');
                    });
                    $(obj).attr('id','on');
                    var jiekou = $('.jkbtn').attr('data-jk');
                    if (href != '' || href != null) {
                        $('#video').attr('src', '/jzad');
                        setTimeout(function () {
                            $('#video').attr('src', jiekou + href);
                        },0)
                    }
                }
                function xldata(obj) {
                    var url = $(obj).attr('data-jk');
                    $.each($('.jkbtn'), function () {
                        $(this).removeClass('jkbtn');
                    });
                    $(obj).addClass('jkbtn');
                    var src = $('#on').attr('data-href');
                    $('#video').attr('src', url + src);
                }
            </script>

</div>


<script type="text/javascript "> 
                    var url = window.location.href;
					$MH.limit = 10;
					$MH.recordHistory({
						name: '<?php echo $timu; ?>',
						link: url,
					})
				</script>
		
</div>
<div class="article-actions clearfix">
 <div class="shares">
        <strong>分享到：</strong>
        <a href="javascript:;" data-url="<?php echo $aik['pcdomain'];?>" class="share-weixin" title="分享到微信"><i class="fa"></i></a><a etap="share" data-share="qzone" class="share-qzone" title="分享到QQ空间"><i class="fa"></i></a><a etap="share" data-share="weibo" class="share-tsina" title="分享到新浪微博"><i class="fa"></i></a><a etap="share" data-share="tqq" class="share-tqq" title="分享到腾讯微博"><i class="fa"></i></a><a etap="share" data-share="qq" class="share-sqq" title="分享到QQ好友"><i class="fa"></i></a><a etap="share" data-share="renren" class="share-renren" title="分享到人人网"><i class="fa"></i></a><a etap="share" data-share="douban" class="share-douban" title="分享到豆瓣网"><i class="fa"></i></a>
    </div>   
 <a href="javascript:;" class="action-rewards" etap="rewards">打赏</a>
    </div> 
</div>
</div></div></div>
<?php  include 'aik_sidebar.php';?>
</section>
</div>
<?php  include 'aik_foot.php';?>
<?php include './rule/fav.php';?>
<script type="text/javascript">
    $(function(){     
			  var noContent = $("#no_content").html();			  
			  if(noContent == null || noContent.length == 0)
			  {
				  alert("该视频暂时没有资源,请选择其他视频观看！");
				   javascript:history.go(-1);
			  }
	});
</script>
</body>
</html>

